import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/container/home/index.vue'),
    }, {
      path: '/login',
      name: 'login',
      component: () => import('@/container/login/index.vue'),
    }, {
      path: '/forget',
      name: 'forget',
      component: () => import('@/container/forget/index.vue'),
    }, {
      path: '/reg',
      name: 'reg',
      component: () => import('@/container/reg/index.vue'),
    }, {
      path: '/photo',
      name: 'photo',
      component: () => import('@/container/photo/index.vue'),
    }, {
      path: '/schedule',
      name: 'schedule',
      component: () => import('@/container/schedule/index.vue'),
    }, {
      path: '/navigation',
      name: 'navigation',
      component: () => import('@/container/navigation/index.vue'),
    }, {
      path: '/meeting',
      name: 'meeting',
      component: () => import('@/container/meeting/index.vue'),
    }, {
      path: '/pay',
      name: 'pay',
      component: () => import('@/container/pay/index.vue'),
    }, {
      path: '/video',
      name: 'video',
      component: () => import('@/container/video/index.vue'),
    }, {
      path: '/video/:id',
      name: 'videoDetetail',
      component: () => import('@/container/videoDetetail/index.vue'),
    }, { // 个人中心
      path: '/i',
      name: 'i',
      component: () => import('@/container/i/index.vue'),
    }, { // 修改资料
      path: '/i/profile',
      name: 'profile',
      component: () => import('@/container/i/profile/index.vue'),
    }, { // 查看已报名会议
      path: '/i/meeting',
      name: 'meeting',
      component: () => import('@/container/i/meeting/index.vue'),
    }, { // 修改报名信息
      path: '/i/meeting/:id',
      name: 'meeting',
      component: () => import('@/container/i/meeting/edit/index.vue'),
    }, { // 收藏
      path: '/i/collect',
      name: 'collect',
      component: () => import('@/container/i/collect/index.vue'),
    }, { // 修改密码
      path: '/i/password',
      name: 'password',
      component: () => import('@/container/i/password/index.vue'),
    },
  ],
})
